var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var _a;
{
    var Animal = /** @class */ (function () {
        function Animal(name) {
            this.name = name;
        }
        Animal.prototype.run = function () {
            return "".concat(this.name, "is running");
        };
        return Animal;
    }());
    var snake = new Animal('lily');
    snake.run();
    var Dog = /** @class */ (function (_super) {
        __extends(Dog, _super);
        function Dog() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        Dog.prototype.bark = function () {
            this.name = 'jjjjj';
            return "".concat(this.name, "is barking");
        };
        return Dog;
    }(Animal));
    var xiaobao = new Dog('xiaobao');
    xiaobao.run();
    var Cat = /** @class */ (function (_super) {
        __extends(Cat, _super);
        function Cat(name) {
            var _this = _super.call(this, name) || this;
            console.log(_this.name);
            return _this;
        }
        Cat.prototype.run = function () {
            return 'Me, ' + _super.prototype.run.call(this);
        };
        return Cat;
    }(Animal));
    var mycat = new Cat('fugui');
    var Clock = (_a = /** @class */ (function () {
            function Clock(h, m) {
                this.currentTime = 1234;
            }
            Clock.prototype.alert = function () {
            };
            return Clock;
        }()),
        _a.time = 'jjj',
        _a);
    var Cellphone = /** @class */ (function () {
        function Cellphone() {
            this.currentTime = 1234;
        }
        Cellphone.prototype.alert = function () {
        };
        Cellphone.prototype.play = function () {
        };
        return Cellphone;
    }());
}
